package com.jqb.struts2lab01.action;

import com.opensymphony.xwork2.ActionSupport;

public class ResultRedirectAction extends ActionSupport{

	private static final long serialVersionUID = 1L;
	
	private String address;
	private String name;
	private String sex;

	public String execute() {

//		try {
//			this.name = URLEncoder.encode("中文参数", "utf-8");
//			this.sex = URLEncoder.encode("女", "utf-8");
//			this.address = URLEncoder.encode("印度", "utf-8");
//		} catch (UnsupportedEncodingException e) {
//			e.printStackTrace();
//		}

		this.name = "中文参数";
		this.sex = "男";
		this.address="中国";
		
		return SUCCESS;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
}
